package  entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="role")
public class Role {
	private String rowid;
	private String name;
	
	/** default constructor */
	public Role() {
	}

	/** minimal constructor */
	public Role(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public Role(String rowid, String name) {
		this.rowid = rowid;
		this.name = name;
	}
	@Id
	@GeneratedValue(generator = "system-uuid")  
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="rowid")
	public String getRowid() {
		return rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
	@Column(name="name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
